<%@ page import="java.util.List" %>
<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2023/4/2
  Time: 11:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>集合操作</title>
</head>
<body>
<%
    List<String> list = Arrays.asList("aa", "bb", "cc", "dd", "ee", "ff");
    String[] array = {"11", "22", "33", "44"};
    pageContext.setAttribute("A", list);
    pageContext.setAttribute("B", array);
%>
${A}<br/>
${B}<br/>
${A.get(1)}<br/>
${A[1]}<br/>
${B[2]}
</body>
</html>
